package com.ganwei.mybatisplus.system.service.impl;

import com.ganwei.mybatisplus.system.mapper.db1.UsersMapper1;
import com.ganwei.mybatisplus.system.mapper.db2.UsersMapper2;
import com.ganwei.mybatisplus.system.pojo.UserInfoPOJO;
import com.ganwei.mybatisplus.system.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestImpl implements TestService {

    @Autowired
    private UsersMapper2 usersMapper2;

    @Autowired
    private UsersMapper1 usersMapper1;


    @Override
    public void test() {
        List<UserInfoPOJO> userInfoPOJOS = usersMapper2.queryUserName();
        List<?> objects = usersMapper1.userPages(1, 10);
        System.out.println();
    }
}
